<script setup>

</script>

<template>
<div class="card_component">
  <van-image
      lazy-load
      width="100%"
      src="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"
  />
  <div class="name_box">
    <span class="name">四川红心猕猴桃新鲜当季水果</span>
    <span class="tab">月售300份</span>
  </div>
  <div class="price">
    <div>
      <span class="preferential">
        ￥44.8
      </span>
      <span class="original">
        60
      </span>
    </div>
    <div class="cart"></div>
  </div>
</div>
</template>

<style scoped lang="scss">
.card_component{
  background: #FFFFFC;
  box-shadow: 0 1.2rem 2rem 0 rgba(2,95,38,0.05);
  border-radius: 1rem;
  overflow: hidden;
  .name_box{
    padding: 1rem;
    font-size: 1.4rem;
    color: #333333;
    line-height: 1.6rem;
    .name{
      margin-right: .5rem;
    }
    .tab{
      height: 1.7rem;
      background: rgba(0, 0, 0, 0.06);
      padding: 0 0.6rem;
      border-radius: 0.3rem;
      opacity: 1;
      width: 16px;
      line-height: 1.7rem;
      font-size: 1.2rem;
      color: #666666;
    }
  }
  .price{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding: 0 1rem;
    .preferential{
      font-size: 1.8rem;
      color: #ED6316;
    }
    .original{
      text-decoration:line-through;
      color: #999999;
      font-size: 1.2rem;
    }
    .cart{
      width: 2.4rem;
      height: 2.4rem;
      border-radius: 50%;
      background: rgba(79,172,145,0.1);
      opacity: 1;
    }
  }

}
</style>